package com.sf.osms.dep.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Polymorphism;
import org.hibernate.annotations.PolymorphismType;

import com.sf.novatar.base.domain.LongIdBean;
/**
 * 系统参数配置实体类
 * @author sfhq1469
 *
 */
@Entity
@DynamicUpdate(true)
@Table(name = "TS_CONFIG")
@Polymorphism(type = PolymorphismType.EXPLICIT)
public class SysConfig extends LongIdBean implements Serializable, Cloneable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private Long id ;
	/***
	 * 
	 * 标签
	 */
	@Column(name = "lable")
	private String lable;
	/***
	 *Key值
	 */
	@Column(name = "sys_key")
	private String key;
	/***
	 * value值
	 */
	@Column(name = "sys_value")
	private String value;
	
	/***
	 * 备注
	 */
	@Column(name = "remark")
	private String remark;
	
	/***
	 * 是否加密
	 */
	@Column(name = "is_encrypt")
	private Integer isEncrypt;
	
	/***
	 * 分组类型
	 */
	@Column(name = "grouptype")
	private Integer groupType;
	
	/***
	 * 排序
	 */
	@Column(name = "display")
	private Integer disPlay;

	public Long getId() {
		return id;
	}

	public String getLable() {
		return lable;
	}

	public String getKey() {
		return key;
	}

	public String getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setLable(String lable) {
		this.lable = lable;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsEncrypt() {
		return isEncrypt;
	}

	public void setIsEncrypt(Integer isEncrypt) {
		this.isEncrypt = isEncrypt;
	}

	public Integer getGroupType() {
		return groupType;
	}

	public void setGroupType(Integer groupType) {
		this.groupType = groupType;
	}

	public Integer getDisPlay() {
		return disPlay;
	}

	public void setDisPlay(Integer disPlay) {
		this.disPlay = disPlay;
	}
	
	

	

}
